﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpDay14.Data.Model
{
    public class Product
    {
        [Key]
        public int Id { get; set; }
        [Display(Name = "Product Name")]
        public string Title { get; set; }
        [Range(0.01, Double.MaxValue)]
        public double Price { get; set; }

        public virtual List<User> Users { get; set; }
    }
}